package MyCode;

import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.net.Socket;

/*
功能：
请求连接-断开-录音-停止录音-发送-接收播放
 */
public class Client extends JFrame implements ActionListener {
    private static String IP = "123.57.60.39";
    private static int port = 50000;
    private Socket socket = null;
    private Integer id = null;
    private Integer target_id = null;
//    JTextField iptext = null;
//    JTextField porttext = null;
    JPanel jp1,jp2;
    JButton jb1,jb2,jb3,jb4;


    public Client(){
        jp1 = new JPanel();
        jp2 = new JPanel();
        jb1 = new JButton("请求连接");
    }

    public void receive(){

    }

    class receieve implements Runnable{

        @Override
        public void run() {

        }
    }


    @Override
    public void actionPerformed(ActionEvent e) {

    }
}
